﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="_SupplyCodeManage.aspx.cs"
    Inherits="ATW.MT.SellManage._SupplyCodeCode" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>供应商邀请码</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="expires" content="0" />
    <meta http-equiv="Cache-Control" content="no-cache" />
    <script type="text/javascript" src="../Scripts/jquery-1.10.2.min.js"></script>
    <script type="text/javascript" src="../Scripts/jsharp.popupdiv.js"></script>
    <script type="text/javascript" src="../Scripts/My97DatePicker/WdatePicker.js"></script>
    <link rel="Stylesheet" href="../Styles/css.css" />
    <base target="_self" />
</head>
<body>
    <form id="form1" runat="server">
    <div class="main_hd" style="width: 95%; margin-left: 15px; max-width: 785px; max-height: 385px;
        overflow-y: scroll">
        <h2 style="padding: 0px 20px;">
            供应商邀请码
        </h2>
        <div class="title_tab" id="topTab">
            <ul>
                <li>供应商名称：&nbsp;<input type="text" id="txtName" runat="server" />&nbsp; 状态：&nbsp;
                    <asp:DropDownList runat="server" ID="ddlStatus">
                        <asp:ListItem Text="全部" Value=""></asp:ListItem>
                        <asp:ListItem Text="未使用" Value="0"></asp:ListItem>
                        <asp:ListItem Text="已使用" Value="1"></asp:ListItem>
                    </asp:DropDownList>
                    &nbsp;
                    <asp:Button runat="server" ID="btnSearch" Text="搜索" class="MaintenanceButton" OnClick="btnSearch_Click"
                        Style="background: #d91913; outline: none; border: none; color: White; padding: 5px 20px;" />
                    &nbsp; &nbsp; &nbsp; </li>
            </ul>
            <ul>
                <li>
                    <asp:Label runat="server" ID="lblError" ForeColor="Red" Font-Bold="true"></asp:Label></li>
            </ul>
        </div>
        <asp:Repeater ID="rpList" runat="server">
            <HeaderTemplate>
                <table width="95%" border="0" cellpadding="0" cellspacing="0" style="font-size: 14px"
                    class="queryResultTable">
                    <tr>
                        <th>
                            供应商名称
                        </th>
                        <th>
                            邀请码
                        </th>
                        <th>
                            备注
                        </th>
                        <th>
                            是否使用
                        </th>
                        <th>
                            创建时间
                        </th>
                        <th>
                            操作
                        </th>
                    </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td>
                        <%#Eval("name").ToString() %>
                    </td>
                    <td>
                        <%#Eval("Code").ToString() %>
                    </td>
                    <td>
                        <asp:Label runat="server" ID="lblRemark" Text=' <%#Eval("remark").ToString() %>'></asp:Label>
                    </td>
                    <td>
                        <%#Eval("isUsed").ToString()=="1"?"已使用":"未使用" %>
                    </td>
                    <td>
                        <%#Eval("time").ToString() %>
                    </td>
                    <td>
                        <asp:LinkButton runat="server" ID="lbnEditRemark" OnClick="lbnEditRemark_Click" CommandArgument='<%#Eval("SCID").ToString() %>'>
                        修改备注
                        </asp:LinkButton>
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                </table>
            </FooterTemplate>
        </asp:Repeater>
        <cc1:AspNetPager ID="AspNetPager1" Style="float: right" runat="server" PageSize="10"
            AlwaysShow="true" CssClass="paginator" CurrentPageButtonClass="cpb" FirstPageText="首页"
            PagingButtonSpacing="0" LastPageText="尾页" NextPageText="下一页" PrevPageText="上一页"
            OnPageChanged="AspNetPager1_pageChanged">
        </cc1:AspNetPager>
    </div>
    <div id="divRemark" style="display: none;">
        <div class="tc_header">
            <h2>
                修改备注</h2>
            <a id="hideRemark">
                <img src="../images/chacha.png" width="13" height="13"></a>
        </div>
        <div class="tc_content">
            <div class="tanchu03" style="">
                <asp:TextBox runat="server" ID="txtRemark" TextMode="MultiLine" Rows="4" Columns="25"></asp:TextBox>
            </div>
            <div style="text-align: center; margin-top: 15px">
                <asp:LinkButton runat="server" ID="lbnSaveRemark" CssClass="queryButton" OnClick="lbnSaveRemark_Click">
                            保存备注
                </asp:LinkButton>
                <asp:HiddenField runat="server" ID="hdfScid" />
            </div>
        </div>
    </div>
    <div id="divMsg" style="display: none;">
        <div class="tc_header">
            <h2>
                提示</h2>
            <a id="hideMsg">
                <img src="../images/chacha.png" width="13" height="13"></a>
        </div>
        <div class="tc_content">
            <div class="tanchu03" style="min-width: 200px,min-height:80px">
                <p id="msgContent">
                </p>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
